USER='zgc'
PASSWD='123456'
n=3
for count in range(n) :
    USER_confirm=input('please enter User Name:')
    PASSWD_confirm=input('please enter Passwd:')
    if ( USER == USER_confirm and PASSWD == PASSWD_confirm ) :
        print(f"Welcome to login,{USER}")
        break
    elif count == 0 :
        print(f"You have entered incorrectly {count + 1} time ,please try again")
        continue
    elif count <= n-1 :
        print(f"You have entered incorrectly {count + 1 } times ,please try again")
        continue
    else :
        print(f"enter incorrectly {n} times ,login prohibited")
        break

# 变量名的话，一般都是小写字母开头, if 和else语句后面直接加冒号就行，不要加空格
